<div class="row-fluid">
  <div class="box">

    <div class="title">
      <h4>
        <span class="icon16 icomoon-icon-equalizer-2"></span>
        <span>Manage User</span>
      </h4>

    </div>
    <div class="content">

      <table class="table table-striped">
        <thead>
          <tr>
            <th>User Name</th>
            <th>Email</th>
            <th>Seeking</th>
            <th>Avavar</th>
            <th>Created At</th>
            <th>Last Login Time</th>
            <th>Last Login IP</th>
            <th>Is online</th>
            <th>Action</th>
          </tr>
        </thead>
        <tbody>
          <?php 
            $isonline = array('Offline','Online'); 
            
          ?>
          <?php foreach($rs_user as $user): ?>
            <?php 
              $link_img = FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif';
              if ($user['link_img'] != null) 
                $link_img = FRONT_SITE_URL. 'www/uploads/photos/thumbs/thumb_'. $user['link_img']; 
              else {
                $link_img = $user['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
              } 
            ?>
          <tr>
            <td><?php echo $user['username']; ?></td>
            <td><?php echo $user['email']; ?></td>
            <td><?php echo isset($seeking[$user['seeking']])?$seeking[$user['seeking']]:$user['seeking']; ?></td>
            <td><img src="<?php echo $link_img; ?>" width="134"/></td>
            <td><?php echo $user['created_at']; ?></td>
            <td><?php echo $user['last_login_time']; ?></td>
            <td><?php echo $user['last_login_ip']; ?></td>
            <td><?php echo isset($isonline[$user['is_online']])?$isonline[$user['is_online']]:'Offline'; ?></td>
            <td>
              <div class="controls center">
                <a aria-describedby="ui-tooltip-7" title="" oldtitle="Edit" class="tip" href="<?php echo app()->createAbsoluteUrl('dashboard/usermanage/update/'.$user['user_id']); ?>"><span class="icon12 icomoon-icon-pencil"></span></a>
                <a aria-describedby="ui-tooltip-8" title="" oldtitle="Remove" class="tip" href="<?php echo app()->createAbsoluteUrl('dashboard/usermanage/delete/'.$user['user_id']); ?>"><span class="icon12 icomoon-icon-remove"></span></a>
              </div>
            </td>
          </tr>
          <?php endforeach; ?>
          <!--<tr>
            <td>All Game Category</td>
            <td>all-game-category</td>
            <td>
              afsdf
            </td>
            <td>
              <span class="badge badge-success">Yes</span>
            </td>
            <td>
              <span class="badge badge-success">Yes</span>
            </td>
            <td>
              7
            </td>
            <td>
              8
            </td>
            <td>
              <div class="controls center">
                <a aria-describedby="ui-tooltip-7" title="" oldtitle="Edit" class="tip" href="/miniclip-clone/backend/gamecategory/update/1"><span class="icon12 icomoon-icon-pencil"></span></a>
                <a aria-describedby="ui-tooltip-8" title="" oldtitle="Remove" class="tip" href="/miniclip-clone/backend/gamecategory/delete/1"><span class="icon12 icomoon-icon-remove"></span></a>
              </div>
            </td>
          </tr>-->

        </tbody>
      </table>

    </div>
  </div>
</div>